package org.happen.android.app;

import java.io.File;

import org.happen.android.core.data.image.ImageCacheManager;

import android.os.Environment;

public class Globals
{

	static final String BASE_ACTION = "org.happen.android.";
	/**
	 * 请求action
	 */
	public static final String ACTION_REQUEST = BASE_ACTION + "ACTION_REQUEST";
	/**
	 * 响应action
	 */
	public static final String ACTION_RESPONSE = BASE_ACTION + "ACTION_RESPONSE";

	public static final String ACTION_LOCAL = BASE_ACTION + "ACTION_LOCAL";

	public static final String ACTION_LOCK_PATTERN_FORGET = BASE_ACTION + "ACTION_LOCK_PATTERN_FORGET";

	/**
	 * 求情参数
	 */
	public static final String REQUEST_PARAM_DATA = "request_param_data";
	/**
	 * 响应参数，请求结果
	 */
	public static final String RESPONSE_PARAM_DATA = "response_param_data";
	/**
	 * 响应参数，响应对应的请求
	 */
	public static final String RESPONSE_PARAM_REQ = "response_param_req";

	/**
	 * 检查登陆
	 */
	public static final boolean CHECK_LOGIN = true;

	/**
	 * 时候使用jpush
	 */
	public static final boolean USE_JPUSH = true;
	/**
	 * 是否使用高德地图
	 */
	public static final boolean USE_AMAP = true;

	public static final boolean NO_FUNCTION = true;

	/**
	 * 自动填写验证码,提供测试使用
	 */
	public static final boolean AUTO_WRITE_CODE = false;
	/**
	 * 是否启动采集日志信息
	 */
	public static final boolean AUTO_RECORD_LOG = false;

	/**
	 * 文件保存路径
	 */
	public static final String APP_FILE_PATH = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + "Shenghuotong";
	/**
	 * 图片文件保存路径
	 */
	public static final String APP_FILE_IMAGE_PATH = APP_FILE_PATH + File.separator + "imagecache";

	public static final String APP_FILE_CACHE_PATH = APP_FILE_PATH + File.separator + "cache";;
	/**
	 * 图片缓存模式
	 */
	public static final int SHENOHUOTONG_MODE = ImageCacheManager.MODE_LEAST_RECENTLY_USED;
	public static final String SHENOHUOTONG_TAG = "SHENOHUOTONG";
	/**
	 * 消息推送
	 */
	public static final String KEY_PUSH_STATE = "push_state";

	public static final String REGISTER_PHONE = "register_phone";

}